Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure completion block is always called in DefaultExperimentClient #60

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

Brett-Best
Copy link
Contributor

Summary

This PR ensures that DefaultExperimentClient.start will always call the provided completion block.
This fixes an issue where wrapping the method for Swift Concurrency could result in a leaked continuation.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: No

@Brett-Best Brett-Best force-pushed the fix/DefaultExperimentClient.start branch from 4b12165 to a67192f Compare September 13, 2024 02:57
@tyiuhc tyiuhc requested a review from bgiori September 13, 2024 16:23
@tyiuhc tyiuhc merged commit 5f0e1dc into amplitude:main Sep 13, 2024
2 checks passed
@bgiori
Copy link
Collaborator

bgiori commented Sep 13, 2024

Thank you @Brett-Best !

github-actions bot pushed a commit that referenced this pull request Sep 13, 2024
## [1.13.7](v1.13.6...v1.13.7) (2024-09-13)

### Bug Fixes

* ensure `completion` block is always called in `DefaultExperimentClient.start` function ([#60](#60)) ([5f0e1dc](5f0e1dc))
Copy link

🎉 This PR is included in version 1.13.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants